import request from '@/utils/request'

// 查询区历史地震信息列表
export function getAllHistoricalSeismicData(query) {
  return request({
    url: '/historicalSeismicData/getAllHistoricalSeismicData',
    method: 'get',
    params: query
  })
}

// 查询区历史地震信息详细
export function getHistoricalSeismicData(id) {
  return request({
    url: '/historicalSeismicData/getHistoricalSeismicData?id=' + id,
    method: 'get'
  })
}

// 新增区历史地震信息
export function saveHistoricalSeismicData(data) {
  return request({
    url: '/historicalSeismicData/saveHistoricalSeismicData',
    method: 'post',
    data: data
  })
}

// 修改区历史地震信息
export function updateHistoricalSeismicData(data) {
  return request({
    url: '/historicalSeismicData/updateHistoricalSeismicData',
    method: 'post',
    data: data
  })
}

// 删除区历史地震信息
export function delHistoricalSeismicData(id) {
  return request({
    url: '/historicalSeismicData/delHistoricalSeismicData/' + id,
    method: 'post'
  })
}

// 人员权限历史地震信息
export function getPermission() {
  return request({
    url: '/historicalSeismicData/isCouAdmin',
    method: 'get',
  })
}